import Vue from 'vue';
import App from './App.vue';
import Toast from '@/components/Toast/Toast';
import Loading from '@/components/Loading/Loading';
import Confirm from '@/components/Confirm/Confirm';
import store from '@/store/store';
import router from '@/router';
import { ajax } from '@/axios/request';
import '@/styles/main.css';

Vue.use(store);
Vue.use(Toast);
Vue.use(ajax);
Vue.use(Loading);
Vue.use(Confirm);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App),
});
